<?php
require_once dirname(__FILE__) . '/ORMBase.class.php';
function classToOrm($class = NULL) {
  $class = strtolower($class);
  switch ($class) {
    case 'pz_category':
      require_once dirname(__FILE__) . '/ORMpz_category.class.php';
      return new ORMpz_category();
    case 'pz_datezone':
      require_once dirname(__FILE__) . '/ORMpz_datezone.class.php';
      return new ORMpz_datezone();
    case 'pz_expense':
      require_once dirname(__FILE__) . '/ORMpz_expense.class.php';
      return new ORMpz_expense();
    case 'pz_particular':
      require_once dirname(__FILE__) . '/ORMpz_particular.class.php';
      return new ORMpz_particular();
    case 'pz_payee':
      require_once dirname(__FILE__) . '/ORMpz_payee.class.php';
      return new ORMpz_payee();
    case 'pz_payment':
      require_once dirname(__FILE__) . '/ORMpz_payment.class.php';
      return new ORMpz_payment();
    case 'pz_transfer':
      require_once dirname(__FILE__) . '/ORMpz_transfer.class.php';
      return new ORMpz_transfer();
    case 'pz_user':
      require_once dirname(__FILE__) . '/ORMpz_user.class.php';
      return new ORMpz_user();
    default:
      return NULL;
  }
  return NULL;
}
?>
